package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the per_pms_empdet database table.
 * 
 */
@Entity
@Table(name="per_pms_empdet")
@NamedQuery(name="PerPmsEmpdet.findAll", query="SELECT p FROM PerPmsEmpdet p")
public class PerPmsEmpdet implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int detid;

	private int detage;

	private String detgj;

	private String detmz;

	@Temporal(TemporalType.DATE)
	private Date detsr;

	private String detzz;

	//bi-directional many-to-one association to PerPmsEmp
	@ManyToOne
	@JoinColumn(name="EMPID")
	private PerPmsEmp perPmsEmp;

	//bi-directional many-to-one association to PerPmsSex
	@ManyToOne
	@JoinColumn(name="SEXID")
	private PerPmsSex perPmsSex;

	public PerPmsEmpdet() {
	}

	public int getDetid() {
		return this.detid;
	}

	public void setDetid(int detid) {
		this.detid = detid;
	}

	public int getDetage() {
		return this.detage;
	}

	public void setDetage(int detage) {
		this.detage = detage;
	}

	public String getDetgj() {
		return this.detgj;
	}

	public void setDetgj(String detgj) {
		this.detgj = detgj;
	}

	public String getDetmz() {
		return this.detmz;
	}

	public void setDetmz(String detmz) {
		this.detmz = detmz;
	}

	public Date getDetsr() {
		return this.detsr;
	}

	public void setDetsr(Date detsr) {
		this.detsr = detsr;
	}

	public String getDetzz() {
		return this.detzz;
	}

	public void setDetzz(String detzz) {
		this.detzz = detzz;
	}

	public PerPmsEmp getPerPmsEmp() {
		return this.perPmsEmp;
	}

	public void setPerPmsEmp(PerPmsEmp perPmsEmp) {
		this.perPmsEmp = perPmsEmp;
	}

	public PerPmsSex getPerPmsSex() {
		return this.perPmsSex;
	}

	public void setPerPmsSex(PerPmsSex perPmsSex) {
		this.perPmsSex = perPmsSex;
	}

}